#
# Be sure to run `pod lib lint HZZFAdSDK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'HZZFAdSDK'
  s.version          = '1.9.10'
  s.summary          = 'A short description of HZZFAdSDK.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/i-os-open/hzzfad-sdk'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '早范' => 'jnfdc580@163.com' }
  s.source           = { :git => 'git@gitee.com:i-os-open/hzzfad-sdk.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'
  
  s.frameworks = 'UIKit', 'SystemConfiguration', 'CoreTelephony', 'CoreLocation', 'WebKit', 'CoreFoundation', 'QuartzCore', 'AssetsLibrary', 'ImageIO', 'Accelerate', 'MobileCoreServices', 'AdSupport','CoreMotion', 'AVFoundation', 'CoreMedia'
  s.libraries = 'z', 'sqlite3'
  s.requires_arc = true
  
  s.xcconfig = {"OTHER_LDFLAGS"=>"-ObjC"}
  
  s.pod_target_xcconfig = {
    'OTHER_LDFLAGS' => '-ObjC',
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
  }
  s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
  
  s.xcconfig = {
    'ARCHS' => '${ARCHS_STANDARD_64_BIT}',
    'VALID_ARCHS' => '${ARCHS_STANDARD_64_BIT}',
    'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES'
  }
  
  s.default_subspecs = 'Core'
  
  s.subspec 'Core' do |sp|
    sp.ios.vendored_frameworks =  ['HZZFAdSDK/Classes/HZZFAdSDK.framework']
  end
  
  s.subspec 'Channel' do |channel|
    channel.dependency 'HZZFAdSDK/Core'
    channel.dependency 'WechatOpenSDK', '2.0.4'
  end
  
  s.subspec 'ChannelNoWechat' do |channelNoWechat|
    channelNoWechat.dependency 'HZZFAdSDK/Core'
  end
  
  # s.resource_bundles = {
  #   'HZZFAdSDK' => ['HZZFAdSDK/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
